<?php

/**
 * Author: Artem Azarov <bel-azar@ya.ru>
 * Date: 3/24/12
 * Time: 9:10 PM
 */
class PhpAuthManager extends CPhpAuthManager{
    public function init()
    {
        if($this->authFile===null){
            $this->authFile=Yii::getPathOfAlias('application.config.auth').'.php';
        }

        parent::init();

        if(!Yii::app()->user->isGuest){
            $this->assign(Yii::app()->user->role, Yii::app()->user->id);
        }
    }
}